package com.edroid.apkhooker.db;

import android.test.AndroidTestCase;
import android.util.Log;

public class ModelDBTest extends AndroidTestCase {
	private void log(String msg) {
		Log.e(this.getClass().getSimpleName(), msg+"");
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();
		ModelDB.init(getContext());
	}

	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testRecord() {
		int total = ModelDB.getModelDB().getModelTotal();
		log(total+"");
		log(ModelDB.getModelDB().getModelById(0).toString());
		log(ModelDB.getModelDB().getModelById(total-1).toString());
	}
}
